
#FROM anapsix/alpine-java
FROM  openjdk:8-jdk

#ARG JAR_FILE

ADD ./eureka-client.jar /root/app.jar
WORKDIR /root

VOLUME /logs/platform/eureka-client

EXPOSE 8771

#ENV JAVA_OPTS "-server -Xms64M -Xmx512M -Xss1M -XX:MinHeapFreeRatio=30 -XX:MaxHeapFreeRatio=50 -XX:MaxMetaspaceSize=64M -XX:MinMetaspaceFreeRatio=20 -XX:MaxMetaspaceFreeRatio=30 -Duser.timezone=GMT+08"
ENTRYPOINT ["java", "-server", "-Xms64M", "-Xmx512M", "-Duser.timezone=GMT+08","-jar", "/root/app.jar"]
